package com.ccit.model;

import com.baomidou.mybatisplus.annotation.*;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("member")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "会员手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "会员办理时间")
    @TableField("create_time")
    private Timestamp createTime;

    @ApiModelProperty(value = "会员失效时间")
    @TableField("invalid_time")
    private Timestamp InvalidTime;

    @ApiModelProperty(value = "会员对应教练")
    @TableField("coach")
    private String coach;

    @ApiModelProperty(value = "会员卡类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "会员卡价格")
    @TableField("price")
    private double price;

    @TableLogic//逻辑删除注解
    @ApiModelProperty(value = "会员逻辑删除,1 已删除  0 未删除")
    @TableField("deleted")
    @JsonIgnoreProperties
    private Integer deleted;

}
